import operator


class Solution:
    def clumsy(self, N: int) -> int:
        opt = ("*", "//", "+", "-")
        s = [str(N)]
        count = 0
        while N > 1:
            N -= 1
            s.append(opt[count % 4])
            s.append(str(N))
            count += 1
        return eval("".join(s))


if __name__ == "__main__":
    for i in range(1, 50):
        print(i, Solution().clumsy(i))
